]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
endSessionDialog: Support updates in restart dialog
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 1 Jul 2020 14:49:17 +0000 (16:49 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 10 Aug 2020 15:36:26 +0000 (15:36 +0000)
We will split off restart from the existing shutdown dialog, and
instead offer it as a separate menu item in the session submenu.
But before doing that, make sure that the existing restart dialog
exposes the same feature set as power off.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2202

js/ui/endSessionDialog.js

index b1a36d8cd131e6524cc53c45885c2879cc514eb1..263bea324168a7aafc91391d1bca1beb54b152c6 100644 (file)
@@ -80,13 +80,15 @@ const shutdownDialogContent = {
 
 const restartDialogContent = {
     subject: C_("title", "Restart"),
+    subjectWithUpdates: C_('title', 'Install Updates & Restart'),
     description(seconds) {
         return ngettext(
             'The system will restart automatically in %d second.',
             'The system will restart automatically in %d seconds.',
             seconds).format(seconds);
     },
-    showBatteryWarning: false,
+    checkBoxText: C_('checkbox', 'Install pending software updates'),
+    showBatteryWarning: true,
     confirmButtons: [{
         signal: 'ConfirmedReboot',
         label: C_('button', 'Restart'),